﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace FinalProject
{
    public class ThongTinLienHe
    {
        #region Attributes
        private string _HoVaLot;

        public string HoVaLot
        {
            get { return _HoVaLot; }
            set { _HoVaLot = value; }
        }

        private string _Ten;

        public string Ten
        {
            get { return _Ten; }
            set { _Ten = value; }
        }
        private DateTime _NgaySinh;

        public DateTime NgaySinh
        {
            get { return _NgaySinh; }
            set { _NgaySinh = value; }
        }
        private bool _GioiTinh;

        public bool GioiTinh
        {
            get { return _GioiTinh; }
            set { _GioiTinh = value; }
        }
        private RootObject _TinhTrangHonNhan;

        public RootObject TinhTrangHonNhan
        {
            get { return _TinhTrangHonNhan; }
            set { _TinhTrangHonNhan = value; }
        }
        private string _DiaChi;

        public string DiaChi
        {
            get { return _DiaChi; }
            set { _DiaChi = value; }
        }
        private RootObject _QuocGia;

        public RootObject QuocGia
        {
            get { return _QuocGia; }
            set { _QuocGia = value; }
        }
        private RootObject _TinhThanh;

        public RootObject TinhThanh
        {
            get { return _TinhThanh; }
            set { _TinhThanh = value; }
        }
        private RootObject _QuanHuyen;

        public RootObject QuanHuyen
        {
            get { return _QuanHuyen; }
            set { _QuanHuyen = value; }
        }
        private string _SDT;

        public string SDT
        {
            get { return _SDT; }
            set { _SDT = value; }
        }
        private string _Email;

        public string Email
        {
            get { return _Email; }
            set { _Email = value; }
        }

        private string _pathImage;

        public string PathImage
        {
            get { return _pathImage; }
            set { _pathImage = value; }
        }
        #endregion

        public ThongTinLienHe()
        {
            this._DiaChi = "";
            this._Email = "";
            this._HoVaLot = "";
            this._Ten = "";
            this._QuanHuyen = new RootObject();
            this.QuocGia = new RootObject();
            this.SDT = "";
            this._TinhThanh = new RootObject();
            this._TinhTrangHonNhan = new RootObject();
            this._pathImage = "";

        }

        public ThongTinLienHe(string hoVaLot, string ten, DateTime ngaySinh, bool gioiTinh, string pathImage, RootObject tinhTrangHonNhan,
            string diaChi, RootObject quocGia, RootObject tinhThanh, RootObject quanHuyen, string sdt, string email)
        {
            this._DiaChi = diaChi;
            this._Email = email;
            this._GioiTinh = gioiTinh;
            this._HoVaLot = hoVaLot;
            this._Ten = ten;
            this._NgaySinh = ngaySinh;
            this._QuanHuyen = quanHuyen;
            this._QuocGia = quocGia;
            this._SDT = sdt;
            this._TinhThanh = tinhThanh;
            this._TinhTrangHonNhan = tinhTrangHonNhan;
            this._pathImage = pathImage;
        }

        public ThongTinLienHe(ThongTinLienHe thongTin)
        {
            this._DiaChi = thongTin._DiaChi;
            this._Email = thongTin._Email;
            this._GioiTinh = thongTin._GioiTinh;
            this._HoVaLot = thongTin._HoVaLot;
            this._Ten = thongTin._Ten;
            this._NgaySinh = thongTin._NgaySinh;
            this._QuanHuyen = thongTin._QuanHuyen;
            this._QuocGia = thongTin._QuocGia;
            this._SDT = thongTin._SDT;
            this._TinhThanh = thongTin._TinhThanh;
            this._TinhTrangHonNhan = thongTin._TinhTrangHonNhan;
            this._pathImage = thongTin._pathImage;
        }
    }
}
